package com.suncreate.zhtz.iot.task;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;


/**
 * @author hubin
 */
@Component
public class Jobs {
    final static Logger logger= LoggerFactory.getLogger(Jobs.class);
    String filePath="/home/code/smm/health_analysis/data/wav/sound/";

    /**
     * 每隔30分钟定时扫描临时文件,删除过期文件
     */
    @Scheduled(cron="0 */30 * * * ?")
    public void cronJobFileClean()
    {
        logger.info("定时扫描清理临时文件");
        ScanFile();
        logger.info("定时扫描清理临时文件执行完毕");
    }

    public void ScanFile(){

    }
}
